package com.lagou.dao;

import com.lagou.pojo.User;

import java.util.List;

/**
 * @author caiwei
 * @date 2020-9-1 21:26
 */
public interface IUserDao {

    //查询所有用户
    public List<User> findAll() throws Exception;


    //根据条件进行用户查询
    public User findByCondition(User user) throws Exception;

    //添加
    public Integer addUser(User user) throws Exception;
    //修改
    public Integer updateUser(User user) throws Exception;
    //删除
    public Integer deleteUser(User user) throws Exception;

}
